package com.atguigu.system.service.impl;

import com.atguig.system.service.OperLogService;
import com.atguigu.model.system.SysOperLog;
import com.atguigu.system.mapper.SysOperLogMapper;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;

/**
 * <p>
 * 操作日志记录 服务实现类
 * </p>
 *
 * @author lemon
 * @since 2023-01-25
 */
@Service
public class SysOperLogServiceImpl implements OperLogService {

    @Resource
    private SysOperLogMapper sysOperLogMapper;

    /**
     * 保存操作日志
     * @param operLog
     */
    @Override
    public void saveSysLog(SysOperLog operLog) {

        sysOperLogMapper.insert(operLog);
    }
}
